//author:kakake
//1.预约挂号支付，调起收银台支付，支付成功后会回调通知tspaynotifyController
//2.预约挂号退费，调起退费接口，退款成功后会回调通知tspaynotifyController
//3.自助缴费支付，调起收银台支付，支付成功后会回调通知tspaynotifyController

//author:kakake
var Common = /** @class */ (function () {
    function Common() {
    }
    return Common;
}());

//author:kakake
var tsreportService = /** @class */ (function () {
    function tsreportService() {
    }
    return tsreportService;
}());

//author:kakake
var tsreportDao = /** @class */ (function () {
    function tsreportDao(workid) {
        this.data = {
            dbConn: TSLobsterAPI.Program.GetDbConn(),
            WorkId: 1
        };
        this.data.WorkId = workid;
    }
    return tsreportDao;
}());

//author:kakake
var tsreportController = /** @class */ (function () {
    function tsreportController() {
        this.data = {
            dbConn: TSLobsterAPI.Program.GetDbConn(),
            WorkId: 1,
            AppId: 1
        };
        this.data.WorkId = TSLobsterAPI.Program.GetWorkId();
        this.hisinterface = new tshisinterfaceController(1);
        this.service = new tsreportService();
        this.dao = new tsreportDao(this.data.WorkId);
    }
    /**
     * 获取检验结果
     */
    tsreportController.prototype.getLisResult = function () {
        var CardType = TSLobsterAPI.Program.RequestQuery("CardType");
        var CardNum = TSLobsterAPI.Program.RequestQuery("CardNum");
        var StarDate = TSLobsterAPI.Program.RequestQuery("StarDate");
        var EndDate = TSLobsterAPI.Program.RequestQuery("EndDate");
        return this.hisinterface.getLisResultByCardNum(parseInt(CardType), CardNum, StarDate, EndDate);
    };
    /**
     * 获取检查结果
     */
    tsreportController.prototype.getPacsResult = function () {
        var CardType = TSLobsterAPI.Program.RequestQuery("CardType");
        var CardNum = TSLobsterAPI.Program.RequestQuery("CardNum");
        var StarDate = TSLobsterAPI.Program.RequestQuery("StarDate");
        var EndDate = TSLobsterAPI.Program.RequestQuery("EndDate");
        return this.hisinterface.getPacsResultByCardNum(parseInt(CardType), CardNum, StarDate, EndDate);
    };
    return tsreportController;
}());

